package cn.wolfcode.trip.app.controller;

import cn.wolfcode.trip.app.util.UserContext;
import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.TravelQueryObject;
import cn.wolfcode.trip.base.service.ITravelService;
import cn.wolfcode.trip.base.service.IUserCommentService;
import cn.wolfcode.trip.base.service.IUserService;
import cn.wolfcode.trip.base.util.JSONResult;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController //Controller+ResponseBody
@RequestMapping("/comments")
public class CommentController {

    @Autowired
    private IUserCommentService userCommentService;

    /*
    获取某篇评论的评论列表
    资源:/users/{authorId}/travels
    动作:GET
    参数:currentPage=x
     */
    @GetMapping("/{authorId}/travels")
    public Object getCommentsByCommentId(Long commentId) {
//        return userCommentService.listByCommentId(commentId);
        return null;
    }



}
